//
//  EDTournameDetailViewController.m
//  EDF
//
//  Created by 微笑吧阳光 on 2019/7/27.
//  Copyright © 2019 p. All rights reserved.
//

#import "EDTournameDetailViewController.h"

@interface EDTournameDetailViewController ()
@property(nonatomic,strong)UIScrollView * bgSc;
@end

@implementation EDTournameDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    [self creatUI];
    
}

-(void)creatUI{
    self.bgSc = [[UIScrollView alloc]init];
    self.bgSc.frame = CGRectMake(0, kStatusBarAndNavigationBarHeight, kScreenWidth, kScreenHeight-kStatusBarAndNavigationBarHeight);
    self.bgSc.backgroundColor = kRGBColor(245, 245, 245);
    [self.view addSubview:self.bgSc];
    
    
    UIImage * imageV = [UIImage imageNamed:@"1564167848584.jpg"];
    CGFloat  imageW  = imageV.size.width;
    CGFloat  imageH  = imageV.size.height;
    
    CGFloat  bili = imageH/imageW;
    
    UIImageView * imageView = [BBControl createImageViewFrame:CGRectMake(0, 0, kScreenWidth, kScreenWidth*bili) imageName:@"1564167848584.jpg"];
    [self.bgSc addSubview:imageView];
    self.bgSc.contentSize = CGSizeMake(kScreenWidth, imageView.height);
    
    
    
    
    
    
    
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
